//
//  ClassifyDetailsViewController.m
//  DaysComicSugar
//
//  Created by dlios on 15-4-22.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import "ClassifyDetailsViewController.h"

@interface ClassifyDetailsViewController ()

@end

@implementation ClassifyDetailsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.view.backgroundColor = [UIColor orangeColor];
    UISegmentedControl *cdSeg = [[UISegmentedControl alloc] initWithItems:@[@"人气火爆", @"最近更新"]];
    cdSeg.frame = CGRectMake(50, 0, 275, 50);
    [cdSeg addTarget:self action:@selector(choosePage:) forControlEvents:UIControlEventValueChanged];
    [self.view addSubview:cdSeg];
    [cdSeg release];
}

- (void)choosePage:(id)sander
{
    NSLog(@".");
//    UISegmentedControl *cdSeg = (UISegmentedControl *)sander;
//    NSInteger index = cdSeg.sel
    
    
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
